#define _CRT_SECURE_NO_WARNINGS 1
#include"SList.h"
void slttest() {

	/*SLNode* node1 = (SLNode*)malloc(sizeof(SLNode));
	node1->data = 1;
	SLNode* node2 = (SLNode*)malloc(sizeof(SLNode));
	node2->data = 2;
	SLNode* node3 = (SLNode*)malloc(sizeof(SLNode));
	node3->data = 3;
	SLNode* node4 = (SLNode*)malloc(sizeof(SLNode));
	node4->data = 4;
	node1->next = node2;
	node2->next = node3;
	node3->next = node4;
	node4->next = NULL;
	SLNode* plist = node1;*/
	SLNode* plist = NULL;
	SLPushBack(&plist, 1);
	SLPushFront(&plist, 2);
	SLPushFront(&plist, 3);
	SLPushFront(&plist, 4);
	SLPushFront(&plist, 5);
	SLNPrint(plist);
	/*SLPopback(&plist);
	SLPopback(&plist);
	SLPopback(&plist);
	SLPopback(&plist);
	SLPopback(&plist);*/
	/*SLPopFront(&plist);
	SLPopFront(&plist);
	SLPopFront(&plist);
	SLPopFront(&plist);
	SLPopFront(&plist);*/
	SLNPrint(plist);
	SLNode* find = SLFind(&plist,5);
	SLInsert(&plist, find, 11);
	SLNPrint(plist);
	SLInsertAfter(find, 100);
	SLNPrint(plist);
	SLErase(&plist, find);
	SLNPrint(plist);
	SLNode* find1 = SLFind(&plist,3);
	SLEraseafter(find1);
	SLNPrint(plist);
	SLDestory(&plist);
	SLNPrint(plist);


}
int main()
{
	slttest();
	return 0;
}